
<?php $form=$this->beginWidget('CActiveForm', array(
							'id'=>'file',
							'action'=>'',			
							'enableAjaxValidation'=>true,
				'htmlOptions'=>array('enctype'=>'multipart/form-data')	
		)); ?>


<ul>
			<li>
				<!-- Large Text Input -->
				<?php echo $form->labelEx($file,'text',array("label"=>'описание','for'=>'large input')); ?>
				<?php echo CHtml::activetextField($file,"text",array('class'=>'large')); ?> 			
				<?php echo CHtml::error($file,'text'); ?>
			</li>
<li>	
				<?php echo Chtml::activelabelEx($file,'name',array('label'=>"Фаил:",'for'=>'news')); ?>	
				<?php  echo Chtml::activeFileField($file, 'name'); ?>
				<?php echo Chtml::error($file,'name'); ?>
			
			</li>
			</ul>
		  <input type="submit" name="news" value="Загрузить фаил" class="button_white" />
		  
		<?php $this->endWidget(); ?>
	